package com.bdqn.mapper;

import com.bdqn.pojo.Account;
import org.apache.ibatis.annotations.Param;

/**
 * AccountMapper
 *
 * @author 武子
 * @date 2024/10/31
 */
public interface AccountMapper {

    /**
     * 登录
     *
     * @param cardno
     * @param password
     * @return
     */
    Account login(@Param("cardno") String cardno, @Param("password") String password);

    Account income(String cardno);

    int consumption(@Param("cardno")String cardno, @Param("con")double con);

    int deposit(@Param("cardno")String cardno, @Param("inc")double inc);
}
